package org.jeecg.modules.demo.hd.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.jeecg.common.constant.ProvinceCityArea;
import org.jeecg.common.desensitization.annotation.SensitiveField;
import org.jeecg.common.desensitization.enums.SensitiveEnum;
import org.jeecg.common.util.SpringContextUtils;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: app_user
 * @Author: jeecg-boot
 * @Date:   2025-01-19
 * @Version: V1.0
 */
@Data
@TableName("app_user")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="app_user对象", description="app_user")
public class AppUser implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private Long id;
	/**昵称*/
	@Excel(name = "昵称", width = 15)
    @ApiModelProperty(value = "昵称")
    private String nick;
	/**姓名*/
	@Excel(name = "姓名", width = 15)
    @ApiModelProperty(value = "姓名")
    private String name;
	/**手机号*/
	@Excel(name = "手机号", width = 15)
    @SensitiveField(type = SensitiveEnum.MOBILE_PHONE)
    @ApiModelProperty(value = "手机号")
    private String phone;
	/**身份证号*/
	@Excel(name = "身份证号", width = 15)
    @SensitiveField(type = SensitiveEnum.ID_CARD)
    @ApiModelProperty(value = "身份证号")
    private String idcard;
	/**密码*/
	@Excel(name = "密码", width = 15)
    @ApiModelProperty(value = "密码")
    private String pwd;
	/**邀请码*/
	@Excel(name = "推荐人邀请码", width = 15)
    @ApiModelProperty(value = "推荐人邀请码")
    private String inviteCode;
	/**用户等级*/
	@Excel(name = "用户等级", width = 15)
    @ApiModelProperty(value = "用户等级")
    private Integer userLevel;
	/**用户积分*/
	@Excel(name = "用户积分", width = 15)
    @ApiModelProperty(value = "用户积分")
    private Integer userPoints;
	/**用户注册日期*/
	@Excel(name = "用户注册日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "用户注册日期")
    private Date registerTime;
	/**邀请用户数量*/
	@Excel(name = "邀请用户数量", width = 15)
    @ApiModelProperty(value = "邀请用户数量")
    private Integer inviteNum;
	/**实名认证数量*/
	@Excel(name = "实名认证数量", width = 15)
    @ApiModelProperty(value = "实名认证数量")
    private Integer inviteAuthNum;

    @Excel(name = "认证状态", width = 15)
    @ApiModelProperty(value = "认证状态")
	private String authenticationStatus;

	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;


    /**邀请码*/
    @Excel(name = "邀请码", width = 15)
    @ApiModelProperty(value = "邀请码")
    private String genCode;
}
